.class Lcom/jecelyin/editor/v2/ui/JeEditorActivity$e;
.super Ljava/lang/Object;
.source "JeEditorActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->F()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/jecelyin/editor/v2/ui/JeEditorActivity;


# direct methods
.method constructor <init>(Lcom/jecelyin/editor/v2/ui/JeEditorActivity;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$e;->a:Lcom/jecelyin/editor/v2/ui/JeEditorActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 3

    .line 1
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    .line 2
    instance-of v1, v0, Landroid/view/MenuItem;

    if-eqz v1, :cond_1

    .line 3
    check-cast v0, Landroid/view/MenuItem;

    .line 4
    invoke-interface {v0}, Landroid/view/MenuItem;->getItemId()I

    move-result v1

    sget v2, Lcom/jecelyin/editor/v2/j;->je_m_edit:I

    if-ne v1, v2, :cond_0

    .line 5
    iget-object v1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$e;->a:Lcom/jecelyin/editor/v2/ui/JeEditorActivity;

    invoke-static {v1}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->a(Lcom/jecelyin/editor/v2/ui/JeEditorActivity;)Lcom/jecelyin/editor/v2/d;

    move-result-object v1

    invoke-virtual {v1}, Lcom/jecelyin/editor/v2/d;->x()Z

    move-result v1

    .line 6
    invoke-virtual {p1, v1}, Landroid/view/View;->setSelected(Z)V

    .line 7
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$e;->a:Lcom/jecelyin/editor/v2/ui/JeEditorActivity;

    invoke-static {p1}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->c(Lcom/jecelyin/editor/v2/ui/JeEditorActivity;)Lcom/jecelyin/editor/v2/view/menu/a;

    move-result-object p1

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/view/menu/a;->a()Lcom/jecelyin/editor/v2/adapter/MainMenuAdapter;

    move-result-object p1

    xor-int/lit8 v2, v1, 0x1

    invoke-virtual {p1, v2}, Lcom/jecelyin/editor/v2/adapter/MainMenuAdapter;->a(Z)V

    .line 8
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$e;->a:Lcom/jecelyin/editor/v2/ui/JeEditorActivity;

    xor-int/lit8 v1, v1, 0x1

    invoke-static {p1, v1}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->a(Lcom/jecelyin/editor/v2/ui/JeEditorActivity;Z)V

    .line 9
    :cond_0
    iget-object p1, p0, Lcom/jecelyin/editor/v2/ui/JeEditorActivity$e;->a:Lcom/jecelyin/editor/v2/ui/JeEditorActivity;

    invoke-virtual {p1, v0}, Lcom/jecelyin/editor/v2/ui/JeEditorActivity;->onMenuItemClick(Landroid/view/MenuItem;)Z

    :cond_1
    return-void
.end method
